package org.wzh.spring.di.demoh;

import org.wzh.spring.di.demo1.CompactDisc;
import org.wzh.spring.di.demo4.MediaPlayer;

public class CDPlayer implements MediaPlayer {

	private CompactDisc compactDisc;

	public CDPlayer(CompactDisc compactDisc) {
		this.compactDisc = compactDisc;
	}

	@Override
	public void play() {
		compactDisc.play();
	}

}
